<include file="Common/header" /> 
<title>栏目管理</title>
<style>
.norag { border: none !important; font-weight: normal !important }
.input-text,.select-box{ width:135px; border-radius:3px;}
</style>
</head>
<body>
<nav class="breadcrumb">
  <div class="menu_4"> <a href="{:U('Admin/menu')}" >后台菜单</a> <a href="{:U('Admin/menu_add')}" class="active">添加菜单</a> </div>
  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a></nav>
<div class="pd-20">
  <form class="J_ajaxForm" action="" method="post">
    <table class="table table-border table-bg table-hover" style="border-top:none">
      <tbody>
        <tr>
          <td width="140">上级:</td>
          <td>
          <span class="select-box radius" style="width:250px">
          <select name="parentid" class="select" >
          <option value="0">上级菜单</option>
              {$menu_select}
            </select>
            </span>
            </td>
        </tr>
        <tr>
          <td>名称:</td>
          <td><input type="text"  class="input-text radius" datatype="*" name="name" value=""> </td>
        </tr>
        <tr>
          <td>模块:</td>
          <td><input type="text" class="input-text radius" name="app" datatype="/[A-Za-z]/i" errormsg='请输入字母!' id="app" value=""></td>
        </tr>
        <tr>
          <td>控制器:</td>
          <td><input type="text" class="input-text radius"  datatype="/[A-Za-z]/i" errormsg='请输入字母!' name="controller" id="controller" value=""></td>
        </tr>
        <tr>
          <td>方法:</td>
          <td><input type="text" class="input-text radius" ignore="ignore" datatype="/[A-Za-z]/i" errormsg='请输入字母!' name="action" id="action" value=""></td>
        </tr>
        <tr>
          <td>参数:</td>
          <td><input type="text" class="input-text radius length_5" name="parameter" value="">
            例:groupid=1&amp;type=2</td>
        </tr>
        <tr>
          <td>备注:</td>
          <td><div class="formControls col-xs-8 col-sm-9" >
              <textarea class="textarea"  style="width:300px;" placeholder="说点什么..." rows="" cols="" name="remark"></textarea>
            </div></td>
        </tr>
        <tr>
          <td>状态:</td>
          <td><span class="select-box radius">
            <select class="select" size="1" name="status">
              <option value="1">显示</option>
              <option value="0">不显示</option>
            </select>
            </span> 需要明显不确定的操作时建议设置为不显示,例如:删除,修改等 </td>
        </tr>
        <tr>
          <td>类型:</td>
          <td><span class="select-box radius">
            <select name="type"  class="select" >
              <option value="1" selected="">权限认证+菜单</option>
              <option value="0">只作为菜单</option>
            </select>
            </span> 注意:“权限认证+菜单”表示加入后台权限管理,纯粹是菜单项请不要选择此项。</td>
        </tr>
      </tbody>
    </table>
    <div class="btn_wrap" style="margin-top:15px">
      <div class="btn_wrap_pd">
        <button class="btn btn-primary radius " type="submit" style="padding:0 22px">添加</button>
      </div>
    </div>
  </form>
</div>
<script>
$(function(){ 
	 $("select[name='parentid'] option[value='{$pid}']").attr("selected",true);

		$(".J_ajaxForm").Validform({tiptype:3  });	 
		
		
		
	});

</script>
</body>
</html>